package cn.tedu.service.impl;

import cn.tedu.mapper.TypesMapper;
import cn.tedu.pojo.Types;
import cn.tedu.service.TypesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TypesServiceImpl implements TypesService {

    @Autowired
    TypesMapper typesMapper;

    @Override
    public List <Types> findTypes() {
        return typesMapper.selectByExample(null);
    }
}
